import time
from shutil import copyfile
import os
from common.handle_path import excel_template_dir, excel_dir





def create_excel(excel_name):
    curTime = time.strftime("%Y-%m-%d %H%M", time.localtime())
    excel_template_filename = os.path.join(excel_template_dir, excel_name)
    excel_filename = os.path.join(excel_dir, os.path.join(excel_dir, "DPSDK_Autotest_{0}.xlsx".format(curTime)))
    copyfile(excel_template_filename, excel_filename)
    return excel_filename


if __name__ == '__main__':
    create_excel()
